package com.jinsi.service.yrf.iml;

import com.jinsi.mapper.yrf.MicrocircleListMapper;
import com.jinsi.pojo.SyMicrocircleList;
import com.jinsi.service.yrf.MicrocircleListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class MicrocircleListServiceImpl implements MicrocircleListService {

    @Autowired
    private MicrocircleListMapper mapper;


    @Override
    public List<SyMicrocircleList> getAll(SyMicrocircleList syMicrocircleList,String sorw) {
        return mapper.getAll(syMicrocircleList,sorw);
    }

    @Override
    public void upReviewStatus(int id, int reviewStatus) {
        mapper.upReviewStatus(id,reviewStatus);
    }

    @Override
    public List<SyMicrocircleList> getAll2(SyMicrocircleList syMicrocircleList, Integer userId) {
        return mapper.getAll2(syMicrocircleList,userId);
    }

}
